From: kfraser@localhost.localdomain Date: Fri, 17 Aug 2007 08:59:28 +0000 (+0100) Subject: xend: Avoid unnecessary writes to xenstore. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14987^2~67^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=0af35cef10c0f7810f1b262d67486748d508eb52;p=xen.git xend: Avoid unnecessary writes to xenstore. Type of rtc/timeoffset is not 'int' but 'str'. Signed-off-by: Kouya Shimura --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 3ca3f506d0..1a9622d002 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -981,7 +981,7 @@ class XendDomainInfo: changed = True # Check if the rtc offset has changes - if vm_details.get("rtc/timeoffset", 0) != self.info["platform"].get("rtc_timeoffset", 0): + if vm_details.get("rtc/timeoffset", "0") != self.info["platform"].get("rtc_timeoffset", "0"): self.info["platform"]["rtc_timeoffset"] = vm_details.get("rtc/timeoffset", 0) changed = True